a = 'ss'
b = 'cc'

str1 = f'a={a}&b={b}'
print(str1)


import requests

def test_all():
    #第一步：先使用登录接口 获取到jwt
    #模拟发送
    res = requests.post('http://127.0.0.1:8082/post',
                  params={'user':123},
                  headers={'athuor':'caipeiyan'},
                  json={'des':'这个一个post请求','jwt':'2fjldsaj2'}
                  )
    c = res.json()
    print(res.text)
    jwt = c['json']['jwt']
    res = requests.get(
        'http://127.0.0.1:8082/bearer',
        headers={'Authorization':f'Bearer {jwt}'},
        params={'des':'这是一个业务接口,携带了jwt进行认证'}
    )
    print(res.status_code)
    print(res.json())
test_all()